{% extends "tj3/tj3.html" %}


{% block content  %} 

<form action="." method="post" enctype="multipart/form-data">

<h2>Booking 
[<a href={% url task_detail booking.task.id %}>{{booking.task.id}}</a>]
</h2>

<input type="submit" name="command" value="Update" class="button" />
<input type="submit" name="command" value="Delete" class="button" />
<!--- iterate exist bookings --->
<table>
{{ booking_formset.management_form }}
{{ booking_formset }}
</tbody>
</table>

<h2>Related journals</h2>
<input type="submit" name="command" value="Add new journal" class="button" />
<table>
<thead>
<th>CREATED<th>ALERT<th>SUMMARY<th>DESCRIPTION
</thead>

<tbody>
{% for j in journals %}
<tr>
	<td>{{j.created}}
	<td>{{j.alert}}
	<td><a href={% url journal_edit j.id %}>{{j.summary}}</a>
	<td>{{j.description}}
{% endfor %}
</tbody>
</table>
</form>

{% endblock content %}
